var OAuthServiceFactory = Packages.com.google.appengine.api.oauth.OAuthServiceFactory;

function doGet(req, res) {
	var oauthService = OAuthServiceFactory.getOAuthService();
	var text = 
		"user:"+oauthService.getCurrentUser()+"\n"
		+"admin:"+oauthService.isUserAdmin()+"\n"
	;
	res.writer.write(text);
}